﻿@model EWEntityDefinition
@{ Layout = null; }

@if (this.Model == null || !this.ViewData.ModelState.IsValid)
{
    using (Ajax.BeginRouteForm("EasyWeb_Entity", new AjaxOptions() { UpdateTargetId = "easyweb-container-create", InsertionMode = InsertionMode.Replace, OnBegin = "EasyWeb.EWTemp.createBegin", OnSuccess = "EasyWeb.EWTemp.createSuccess", OnFailure = "EasyWeb.EWTemp.createFailure" }))
    {
    <fieldset>
        <legend></legend>
        <div>
            <p style="margin: 0 0 1em 0">@EWWebResources.Entity_WindowText_Create</p>
            <p>@Html.EditorFor(m => m.InternalName)</p>
            <p style="margin: .5em 0 0 0">@Html.ValidationMessageFor(m => m.InternalName)</p>
            <p class="easyweb-notice" style="margin: 1em 0 0 0">@EWWebResources.Entity_WindowText_Notice</p>
        </div>
    </fieldset>
    }
}
else
{
    <input type="hidden" value="@ViewBag.Url" />
}
